import { VxeUI } from 'vxe-table'

import DatePicker from './DatePicker'
import SelectModal from './SelectModal'
import ShiftSchedulePicker from './ShiftSchedulePicker'
import ActionButtons from './ActionButtons'

const customRenderComponents = {
  ...DatePicker,
  ...SelectModal,
  ...ShiftSchedulePicker,
  ...ActionButtons
}

const { renderer } = VxeUI

Object.keys(customRenderComponents).forEach((name) => {
  if (renderer.get(name)) return
  renderer.add(name, customRenderComponents[name])
})
